﻿

#region Using Statements

// System References
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;

// XNA References
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

// Internal References
using Freeform.Framework;
using Freeform.Framework.Graphics;
using Game = Freeform.Framework.Game;

#endregion


namespace Freeform.Framework.Menu
{
    /// <summary>
    /// Represents the base class for a simple text based menu item.
    /// </summary>
    public class MenuItem_Text : MenuItem
    {

        #region Members

        /// <summary>
        /// Gets the TextActor for this item.
        /// </summary>
        public Actor_Text2D TextActor { get; private set; }

        #endregion


        #region Initialisation

        public MenuItem_Text(World World, String Text, String Font)
            : base(World)
        {
            TextActor = new Actor_Text2D(this);
            Actor = TextActor;
            TextActor.Text = Text;
            TextActor.Font = Game.Content.Load<SpriteFont>(Font);
            TextActor.UseNaturalFontSize = true;
        }

        #endregion

    }
}